CC = cc

INCLUDE = -I./inc 
LIB=-lpthread

OBJ += $(patsubst %.c, %.o, $(wildcard ./src/*.c))
OBJ += $(patsubst %.c, %.o, $(wildcard ./*.c))
CFLAGS =  -g3 
target = EasyLoggerLinuxDemo

all:$(OBJ)
	$(CC) out/*.o -o $(target) $(LIB)
	mv $(target) out
%.o:%.c
	$(CC) $(CFLAGS) -c $< -o $@ $(INCLUDE)
	mv $@ out
clean:
	rm -rf out/*
